package com.lee.rabbitmq;

import com.lee.rabbitmq.service.ReceiveService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext ac = SpringApplication.run(Application.class, args);
        ReceiveService receiveService = (ReceiveService) ac.getBean("receiveService");
        //持续接收消息
        //receiveService.directReceive("test");


    }

}
